Skip to content

Conversation

@bromiesTM
Copy link

No description provided.

@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from 8f2778e to 366487a Compare August 11, 2025 14:44
@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from 366487a to 0d59dd2 Compare September 10, 2025 06:51
@bromiesTM bromiesTM requested a review from Copilot September 10, 2025 06:55

This comment was marked as outdated.

@bromiesTM bromiesTM requested a review from Copilot September 10, 2025 07:50

This comment was marked as outdated.

@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from 0d59dd2 to 4adef4e Compare September 10, 2025 07:54
@bromiesTM bromiesTM requested a review from Copilot September 10, 2025 07:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Progressive Web App (PWA) installation functionality, allowing users to install IONOS GPT as an app on their devices. The implementation includes platform-specific detection, installation prompts, and user interface components.

  • Adds PWA detection and installation utilities with platform-specific logic for iOS/Safari vs other browsers
  • Implements PWA install dialog with step-by-step instructions for iOS users
  • Integrates PWA notifications into the existing notification system with appropriate event handling

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/lib/i18n/locales/en-US/ionos.json Adds English translations for PWA installation UI text
src/lib/i18n/locales/de-DE/ionos.json Adds German translations for PWA installation UI text
src/lib/IONOS/services/pwa.ts Core PWA service with platform detection and installation logic
src/lib/IONOS/components/notifications/PWAInstallDialog.svelte Dialog component for PWA installation with iOS-specific instructions
src/lib/IONOS/components/notifications/NotificationManager.svelte Integrates PWA notifications into notification system
src/lib/IONOS/components/notifications/NotificationBanner.svelte Adds PWA install handling to notification banner
src/lib/IONOS/components/icons/Touch.svelte Touch icon for PWA UI
src/lib/IONOS/components/icons/Share.svelte Share icon for iOS installation instructions
src/lib/IONOS/components/common/Dialog.svelte Adds external close button functionality for PWA dialog

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@thlehmann-ionos thlehmann-ionos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's discuss.

/**
* Checks if we should show the PWA install prompt
*/
export function shouldShowPWAPrompt(deferredPrompt: BeforeInstallPromptEvent | null = null): boolean {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that it can be called with an optional event leads to confusion in some places where this function is called as at the calling point it does not work as expected.


export interface BeforeInstallPromptEvent extends Event {
readonly platforms: string[];
readonly userChoice: Promise<{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be its own type. In one place this property was cast to any. Its type could and should be declared in that place (which also gives a linter warning on any).

@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from 4ad0c63 to d6012e9 Compare September 24, 2025 07:51
@bromiesTM bromiesTM requested a review from Copilot October 1, 2025 07:59
@bromiesTM bromiesTM marked this pull request as ready for review October 1, 2025 07:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 34 to 35
else {
}
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty else block should be removed as it serves no purpose and reduces code clarity.

Suggested change
else {
}

Copilot uses AI. Check for mistakes.
@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from c59b275 to 24be6ba Compare October 1, 2025 08:05
bromiesTM and others added 12 commits October 1, 2025 10:05
* Added external close-X below the content element
* Removed overflow-hidden to allow new close-X to leave the container

Notes:

* Works for the privacy links banner
* It should have a prop to enable this explicitly
* Maybe it's better to have a special dialog fo such use cases
* Maybe it should hide the inner button on mobile breakpoint and show
  the other one instead or maybe the inner one can be repurposed just
  by conditions

Refs: PRODAI-380
To allow reuse in another place.

Refs: PRODAI-380
@bromiesTM bromiesTM force-pushed the kh-agent/vibe-dev/pwa-instructions branch from 24be6ba to de52e0f Compare October 1, 2025 08:05
@bromiesTM bromiesTM merged commit 9807d4b into ionos-dev Oct 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants